import request from '@/utils/request' // 引入封装的axios
// 注册
export const userRegisterService = ({ username, password, repassword }) => {
  return request.post('/api/reg', {
    username,
    password,
    repassword
  })
}
// 登录功能
export const userLoginService = ({ username, password }) => {
  return request.post('/api/login', {
    username,
    password
  })
}
// 获取用户信息
export const userGetUserInfoService = () => {
  return request.get('/my/userinfo')
}
